package com.hskn.hss.module.othercarcsotCfg.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.annotation.DataScope;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.ExcelReaderDataException;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.othercarcsotCfg.entity.TlOthercarcostCfg;
import com.hskn.hss.module.othercarcsotCfg.to.OtherCarCostCfgListTO;
import com.hskn.hss.to.ForIdsTO;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-06
 */
public interface ITlOthercarcostCfgService extends IService<TlOthercarcostCfg> {
    AjaxResult insert(JSONObject params);

    AjaxResult update(JSONObject params);

    AjaxResult deleteByid(ForIdsTO forIdsTO);

    TlOthercarcostCfg getitemByid(String id) throws HssException;

    @DataScope(deptAlias = "deptidforcar", userAlias = "creatBy")
    JSONObject getList(BaseEntity baseEntity, JSONObject params) throws HssException;

    @DataScope(deptAlias = "deptidforcar", userAlias = "creatBy")
    List<TlOthercarcostCfg> getTlOthercarcostCfgList(OtherCarCostCfgListTO otherCarCostCfgListTo, SimpleDateFormat format) throws ParseException;

    void excelReader(List<TlOthercarcostCfg> OtherCarCostCfgList) throws ExcelReaderDataException;
}
